# #画一个五角星
#import turtle
# turtle.pensize(5)
# turtle.pencolor("red")
# turtle.penup()
# turtle.goto(-600,0)
# turtle.pendown()
# for i in range(5):
#     turtle.forward(200)
#     turtle.right(144)
#画一个圆，填充圆为蓝色
# turtle.penup()
# turtle.goto(0,0)
# turtle.pendown()
# turtle.fillcolor("blue")
# turtle.begin_fill()
# turtle.circle(100)
# turtle.end_fill()
# turtle.done()
# turtle.penup()
# turtle.goto(0,0)
#
# turtle.fillcolor("red")
# turtle.begin_fill()
# turtle.pendown()
# for i in range (5):
#     turtle.forward(200)
#     turtle.right(144)
# turtle.end_fill()
# turtle.done()

import turtle
#
# # 设置画笔大小和颜色
# turtle.pensize(5)
# turtle.pencolor("red")
#
# # 移动画笔到起始位置
# turtle.penup()
# turtle.goto(-600, 0)
# turtle.pendown()
#
# import tkinter as tk
# import math
# import time
#
#
# class Clock:
#     def __init__(self, root):
#         self.root = root
#         self.root.title("时钟")
#         self.root.geometry("400x400")
#         self.root.resizable(False, False)
#
#         # 创建画布
#         self.canvas = tk.Canvas(root, width=400, height=400, bg="white")
#         self.canvas.pack(pady=10)
#
#         # 绘制时钟
#         self.draw_clock()
#         # 启动时钟更新
#         self.update_clock()
#
#     def draw_clock(self):
#         # 绘制外圆
#         self.canvas.create_oval(50, 50, 350, 350, width=4)
#
#         # 绘制刻度
#         for i in range(60):
#             angle = i * 6  # 每个刻度6度
#             x1 = 200 + 140 * math.cos(math.radians(angle))
#             y1 = 200 + 140 * math.sin(math.radians(angle))
#
#             if i % 5 == 0:  # 小时刻度
#                 x2 = 200 + 120 * math.cos(math.radians(angle))
#                 y2 = 200 + 120 * math.sin(math.radians(angle))
#                 self.canvas.create_line(x1, y1, x2, y2, width=3)
#             else:  # 分钟刻度
#                 x2 = 200 + 130 * math.cos(math.radians(angle))
#                 y2 = 200 + 130 * math.sin(math.radians(angle))
#                 self.canvas.create_line(x1, y1, x2, y2, width=1)
#
#         # 绘制时钟数字
#         for i in range(1, 13):
#             angle = i * 30  # 每个数字30度
#             x = 200 + 100 * math.cos(math.radians(angle - 90))
#             y = 200 + 100 * math.sin(math.radians(angle - 90))
#             self.canvas.create_text(x, y, text=str(i), font=('Arial', 16))
#
#     def update_clock(self):
#         # 清除之前的指针
#         self.canvas.delete("hour_hand", "minute_hand", "second_hand", "center")
#
#         # 获取当前时间
#         current_time = time.localtime()
#         hours = current_time.tm_hour % 12
#         minutes = current_time.tm_min
#         seconds = current_time.tm_sec
#
#         # 计算指针角度
#         second_angle = seconds * 6  # 每秒6度
#         minute_angle = minutes * 6 + seconds * 0.1  # 每分钟6度，加上秒针的小部分移动
#         hour_angle = hours * 30 + minutes * 0.5  # 每小时30度，加上分钟的小部分移动
#
#         # 绘制时针
#         hour_x = 200 + 70 * math.cos(math.radians(hour_angle - 90))
#         hour_y = 200 + 70 * math.sin(math.radians(hour_angle - 90))
#         self.canvas.create_line(200, 200, hour_x, hour_y, width=6, fill="blue", tags="hour_hand")
#
#         # 绘制分针
#         minute_x = 200 + 90 * math.cos(math.radians(minute_angle - 90))
#         minute_y = 200 + 90 * math.sin(math.radians(minute_angle - 90))
#         self.canvas.create_line(200, 200, minute_x, minute_y, width=4, fill="green", tags="minute_hand")
#
#         # 绘制秒针
#         second_x = 200 + 110 * math.cos(math.radians(second_angle - 90))
#         second_y = 200 + 110 * math.sin(math.radians(second_angle - 90))
#         self.canvas.create_line(200, 200, second_x, second_y, width=2, fill="red", tags="second_hand")
#
#         # 绘制中心点
#         self.canvas.create_oval(195, 195, 205, 205, fill="black", tags="center")
#
#         # 每秒更新一次
#         self.root.after(1000, self.update_clock)
#
#
# if __name__ == "__main__":
#     root = tk.Tk()
#     app = Clock(root)
#     root.mainloop()


# turtle.pensize(5)
# turtle.pencolor("blue")
# turtle.penup()
# turtle.goto(-50,-50)
# turtle.pendown()
# turtle.fillcolor("blue")
# turtle.begin_fill()
# turtle.circle(100)
# turtle.end_fill()
# turtle.done()

def print_position(x,y):
    print(x,y)
t=turtle.Turtle()

















